<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心</title>
</head>
<body>
    <script src="../js/utils.js"></script>
    <script>
        const data = await request({
                url:'http://localhost:3000/api/login',
                data:{
                    username:_username,
                    password:_password
                }
            })
            if(data.code === 200){

            }else{
                // 登录失败后跳转到登录页面
                location.href = 'login.html'
            }
    </script>
</body>
</html>